﻿<%@ Control Language="c#"  Inherits="Web.Control.WWW.Feedback.Default" %>
						<div id="Tcontent">
							<div style="padding: 10px; text-align: left; margin: 0 auto; width: 450px">
								<p ><strong><label id="lLang1"><%=GetText("C0108")%></label>:* </strong><br />
                                    <select id="FeedBackCat" name="FeedBackCat" class="common300" disabled="disabled">
                                        <option value="" selected><%=GetText("C0061")%>...</option>
                                         <%=GetFeedBackCatSelect(CurCate.ToString())%>
                                    </select>
                                </p>
                                <div id="divUserInfo" style="<%=(Request["CateID"] != null && Request["CateID"].ToString() == "501") ? "" : "display:none" %>">
									<p><%=GetText("FK028")%>: <br /><img src='<%=((um==null || um.Avatar=="") ?"/Images/no_pic.gif":um.Avatar)%>' height="40" width="40" border="0" /> <a href="/<%=um==null?"":um.MemberNo%>.htm" ><%=um==null?"":um.Nickname%></a>&nbsp;&nbsp;<%=um==null?"":um.MemberNo%></p>
								</div>
								<p><strong><%=GetText("FK016")%>:*</strong><br /><textarea id="txtContent" name="txtContent" class="common300" rows="4" ></textarea></p>
								<p><strong><%=GetText("FK018")%>:*</strong><br /><input type="text" id="txtEmail" name="txtEmail" class="common300" value="<%=obum%>"/></p>
								<p><%=GetText("FK020")%>:<br /><input type="text" id="TextName" name="txtName" class="common300" /></p>
								<p><%=GetText("FK021")%>:<br /><input type="text" id="TextUrl" name="TextUrl" class="common300" value="<%=UrlRefer %>"/></p>
								<p><input id="btnSave" type="button" class="button" value="<%=GetText("C0045")%>" /></p>  
							</div>																
						</div>

<div id="content" style="display: none">
<div style="padding: 10px; text-align: left; margin: 0 auto; width: 450px">
	<h4><%=GetText("C0109")%></h4>
	<p><%=GetText("FK023")%></p>
	</div>
</div>
<span id="valCat" style="color: Red; display: none;" class="red10"></span>
<span id="valContent" style="color: Red; display: none;" class="red10"></span>
<span id="valEmail" style="color: Red; display: none;" class="red10"></span>
<span id="valUrl" style="color: Red; display: none;" class="red10"></span>
<script>
<!--

var Page_Validators =  new Array($get("valCat"),$get("valContent"),$get("valEmail"),$get("valUrl"));
var TmpObj = $get("valCat");
TmpObj.controltovalidate = "FeedBackCat";
TmpObj.errormessage = "<b><%=GetText("C1010")%></b><br /><%=GetText("FK015")%>";
TmpObj.display = "None";
TmpObj.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
TmpObj.validationexpression = ".{1,}";

TmpObj=$get("valContent");
TmpObj.controltovalidate = "txtContent";
TmpObj.errormessage = "<b><%=GetText("C1010")%></b><br /><%=GetText("C1009")%>";
TmpObj.display = "None";
TmpObj.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
TmpObj.validationexpression =".{1,}";


TmpObj=$get("valEmail");
TmpObj.controltovalidate = "txtEmail";
TmpObj.errormessage = "<b><%=GetText("C1010")%></b><br /><%=GetText("C1013")%>";
TmpObj.display = "None";
TmpObj.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
TmpObj.validationexpression = "\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*";

TmpObj=$get("valUrl");
TmpObj.controltovalidate = "TextUrl";
TmpObj.errormessage = "<b><%=GetText("C1010")%></b><br /><%=GetText("C1014")%>";
TmpObj.display = "None";
TmpObj.evaluationfunction = "RegularExpressionValidatorEvaluateIsValid";
TmpObj.validationexpression ="^(([\\s]{0,})|http(s)?://([\\w-]+\\.)+[\\w-]+(/[\\w- ./?%&=]*)?)$";





var Page_ValidationActive = false;

if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
    
}
function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
  
        return ValidatorCommonOnSubmit();
    }
    else {
   
        return true;
    }
}
function CreateValid()
{
$create(AjaxControlToolkit.ValidatorCalloutBehavior, 
    {"closeImageUrl":"<%=RootPath%>Scripts/AjaxTools/images/close.gif","highlightCssClass":"validatorCalloutHighlight",
    "id":"valCat","warningIconImageUrl":"<%=RootPath%>Scripts/AjaxTools/images/alert-small.gif"}, null, null, $get("valCat"));

$create(AjaxControlToolkit.ValidatorCalloutBehavior, 
    {"closeImageUrl":"<%=RootPath%>Scripts/AjaxTools/images/close.gif","highlightCssClass":"validatorCalloutHighlight",
    "id":"valContent","warningIconImageUrl":"<%=RootPath%>Scripts/AjaxTools/images/alert-small.gif"}, null, null, $get("valContent"));

$create(AjaxControlToolkit.ValidatorCalloutBehavior, 
    {"closeImageUrl":"<%=RootPath%>Scripts/AjaxTools/images/close.gif","highlightCssClass":"validatorCalloutHighlight",
    "id":"valEmail","warningIconImageUrl":"<%=RootPath%>Scripts/AjaxTools/images/alert-small.gif"}, null, null, $get("valEmail"));
    
$create(AjaxControlToolkit.ValidatorCalloutBehavior, 
    {"closeImageUrl":"<%=RootPath%>Scripts/AjaxTools/images/close.gif","highlightCssClass":"validatorCalloutHighlight",
    "id":"valUrl","warningIconImageUrl":"<%=RootPath%>Scripts/AjaxTools/images/alert-small.gif"}, null, null, $get("valUrl"));

}


// -->
</script>


